import {get} from '../get'
import {post} from '../post'
import collectionApi from '../../config/api/collectionApi'



export function findCollections(obj,token) {
  return get(collectionApi.findCollections, obj,token);
}
export function findCollectionByGoodsId(obj,token) {
  return get(collectionApi.findCollectionByGoodsId,obj, token);
}
export function addCollection(obj,token) {
  return post(collectionApi.addCollection, obj,token);
}
export function delCollection(obj,token) {
  return post(collectionApi.delCollection, obj,token);
}
export function findCollectionsCountByUser(token) {
  return get(collectionApi.findCollectionsCountByUser,{}, token);
}
export function findCollectionsCountByGoods(obj,token) {
  return get(collectionApi.findCollectionsCountByGoods,obj, token);
}

